package test1.shapes;

public class Circle extends AbstractShape{
    public double radius;
    public Circle(double r)
    {
        radius=r;
    }

    public double getArea()
    {
        return Math.PI*radius*radius;
    }
    public double getPrim()
    {
        return 2*Math.PI*radius;
    }
}